package org.gnomus.data;

import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.users.User;

public class account extends object {

    public account(Entity e) {
        super(e);
        setAuthDomain((String) e.getProperty("auth_domain"));
        setUserId((String) e.getProperty("user_id"));
    }

    public account(String auth_domain, String user_id) {
        super("account");
        setAuthDomain(auth_domain);
        setUserId(user_id);
    }

    public void setAuthDomain(String auth_domain) {
        put("auth_domain", auth_domain);
    }

    public String getAuthDomain() {
        return (String) get("auth_domain");
    }

    public void setUserId(String user_id) {
        put("user_id", user_id);
    }

    public String getUserId() {
        return (String) get("user_id");
    }
}
